﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace SistemaComprasVentaYICHAN
{
    public partial class VentanaMenuPrincipal : Principal
    {
        
        public VentanaMenuPrincipal()
        {
            InitializeComponent();
        }

        private void VentanaMenuPrincipal_Load(object sender, EventArgs e)
        {
            PanelMaestros.Visible = false;
            PanelAlmacen.Visible = false;
            PanelCompras.Visible = false;
            PanelVentas.Visible = false;
            PanelPrincipal.Visible = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {

            VentasDLG v = new VentasDLG();
            v.ShowDialog();

            
        }

        private void button4_Click(object sender, EventArgs e)
        {
            MantenerDLG m = new MantenerDLG();
            m.ShowDialog();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ComprasDLG c = new ComprasDLG();
            c.ShowDialog();
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void maestrosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PanelMaestros.Visible = true;
            PanelAlmacen.Visible = false;
            PanelCompras.Visible = false;
            PanelVentas.Visible = false;
            PanelPrincipal.Visible = false;
           

        }

        private void comprasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PanelMaestros.Visible = false;
            PanelAlmacen.Visible = false;
            PanelCompras.Visible = true;
            PanelVentas.Visible = false;
            PanelPrincipal.Visible = false;
        }

        private void ventasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PanelMaestros.Visible = false;
            PanelAlmacen.Visible = false;
            PanelCompras.Visible = false;
            PanelVentas.Visible = true;
            PanelPrincipal.Visible = false;
        }

        private void almacenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PanelMaestros.Visible = false;
            PanelAlmacen.Visible = true;
            PanelCompras.Visible = false;
            PanelVentas.Visible = false;
            PanelPrincipal.Visible = false;
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        private void PanelPrincipal_Paint(object sender, PaintEventArgs e)
        {

        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {
            AgregarNuevaCotizacion a = new AgregarNuevaCotizacion();
            a.ShowDialog();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            
        }
        

        
    }
}

